package com.puntodonna.fogliocassa.client.app.place.fogliocassa;

import com.gwtplatform.mvp.client.ViewImpl;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.DockLayoutPanel;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Inject;
import com.puntodonna.fogliocassa.client.widget.FogliCassaDataTable;
import com.puntodonna.fogliocassa.client.widget.MovimentiDataTable;
import com.puntodonna.fogliocassa.client.widget.Movimento;

public class FoglioCassaView extends ViewImpl implements FoglioCassaPresenter.MyView {

	private final Widget widget;

	public interface Binder extends UiBinder<Widget, FoglioCassaView> {
	}

	@UiField
	protected DockLayoutPanel fogliCassaArea;
	@UiField
	protected FogliCassaDataTable fogliCassaDataTable;
	@UiField
	protected DockLayoutPanel movimentiArea;
	@UiField
	protected MovimentiDataTable movimentiDataTable;
	@UiField
	protected Button openBtn;
	@UiField
	protected Button cancelBtn;
	@UiField
	protected Button closeBtn;
	@UiField
	protected Movimento movimentoWidget;

	@Inject
	public FoglioCassaView(final Binder binder) {
		widget = binder.createAndBindUi(this);
	}

	@Override
	public Widget asWidget() {
		return widget;
	}

	public DockLayoutPanel getFogliCassaArea() {
		return fogliCassaArea;
	}

	public DockLayoutPanel getMovimentiArea() {
		return movimentiArea;
	}

	public FogliCassaDataTable getFogliCassaDataTable() {
		return fogliCassaDataTable;
	}

	public MovimentiDataTable getMovimentiDataTable() {
		return movimentiDataTable;
	}
	
	public Button getOpenBtn() {
		return openBtn;
	}
	
	public Button getCancelBtn() {
		return cancelBtn;
	}
	
	public Button getCloseBtn() {
		return closeBtn;
	}
	
	public Movimento getMovimentoWidget() {
		return movimentoWidget;
	}
}
